package Entities

import "time"

type Video struct {
	Av          int64     `gorm:"primaryKey;column:av"`
	Title       string    `gorm:"column:title"`
	VideoURL    string    `gorm:"column:video_url"`
	Author      string    `gorm:"column:author"`
	Likes       uint64    `gorm:"column:likes"`
	Views       uint64    `gorm:"column:views"`
	Collects    uint64    `gorm:"column:collects"`
	Comments    uint64    `gorm:"column:comments"`
	CreateDate  time.Time `gorm:"column:create_date"`
	CoverURL    string    `gorm:"column:cover_url"`
	Description string    `gorm:"column:description"`
	Duration    string    `gorm:"column:duration"` // 手动保存 TIME 类型字符串，如 "00:12:34"
}

func (Video) TableName() string {
	return "video"
}
